/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * @author 品讯科技
 */

package com.px.pa.modulars.circle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.px.pa.modulars.circle.entity.CircleExaminationPaper;
import com.px.pa.modulars.circle.entity.CircleTestQuestions;
import com.px.pa.modulars.circle.vo.QuestionsSetVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 试卷表
 *
 * @author 品讯科技
 * @date 2024-08
 */
public interface CircleExaminationPaperService extends IService<CircleExaminationPaper> {
    /**
     *新增试题
     */
    @Transactional
    public void addNow(List<CircleTestQuestions> circleTestQuestionsList,Integer examinationPaper);


    /**
     * 解析[{},{}]json字符串
     */

    public List<QuestionsSetVo> getJson(String json);


    /**
     * 生成考试题目列表
     */

    public void createList(Integer examinationPaper,Integer uid);

    /**
     * 一道一道生成考试题
     */
    public CircleTestQuestions getCircleTestQuestiions(Integer examinationPaper,Integer uid,Integer page,Integer pageSize);

    /**
     *
     * 判断题型数量是否够
     */

    public Boolean getPd(CircleExaminationPaper circleExaminationPaper);
}
